package com.explorex.infra.puma.gateway.netty.rrmp;

import com.explorex.infra.puma.gateway.netty.common.enums.BusinessType;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;
import java.util.List;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.ThreadPoolExecutor;

/**
 * @author: JacceYang
 * @createTime: 2022/09/20 11:47
 * @description:
 */
@Slf4j
@Component
public class PushMessageHandler implements BaseProcessor {

    private static final ExecutorService threadPoolExecutor = Executors.newCachedThreadPool();


    @Override
    public short getMessageType() {
        return BusinessType.PUSH;
    }

    @Override
    public RrmpMessage process(RTcpSession session, RrmpMessage messageFrame) {



        return null;
    }

    private void processPushState(RTcpSession session) {

        session.refresh(true);
    }

    private RrmpMessage processAuth(RTcpSession session,  RrmpMessage messageFrame) {

        return null;
    }




    @Override
    public Object parse(RrmpMessage rrmpMessage) {
        return null;
    }
}
